package cc.rengu.igas.share.facade;

import cc.rengu.igas.share.facade.request.AlipayPayResultNoticeRequest;
import cc.rengu.igas.share.facade.request.WechatPayResultNoticeRequest;
import cc.rengu.igas.share.facade.response.AlipayPayResultNoticeResponse;
import cc.rengu.igas.share.facade.response.WechatPayResultNoticeResponse;
import cc.rengu.igas.share.facade.result.Result;

/**
 * 银联AT业务统一处理服务
 * Created by wangcheng on 2021/9/30 10:50
 */
public interface AlwxUnifiedService {
    /**
     * 银联微信支付结果通知
     *
     * @param request 请求对象
     * @return 通知结果
     * @throws Exception 异常
     */
    Result<WechatPayResultNoticeResponse> wechatPayResultNotice(WechatPayResultNoticeRequest request) throws Exception;

    /**
     * 银联支付宝支付结果通知
     *
     * @param request 请求对象
     * @return 通知结果
     * @throws Exception 异常
     */
    Result<AlipayPayResultNoticeResponse> alipayPayResultNotice(AlipayPayResultNoticeRequest request) throws Exception;
}
